package com.pn.warehouse.service;

import com.pn.warehouse.entity.Product;
import com.pn.warehouse.entity.Result;
import com.pn.warehouse.page.Page;

import java.util.List;

public interface ProductService {

    //分页查询商品列表
    public Page queryProductPage(Page page, Product product);

    //添加商品
    public Result insertProduct(Product product);

    //根据商品id修改商品上下架状态
    public Result updateStateById(Product product);

    //根据id删除商品
    public Result removeProductById(List<Integer> ids);

    //根据商品id修改商品
    public Result updateProductById(Product product);

}
